
package com.hulk.dryad.persistence.mapper;

import com.hulk.dryad.persistence.entity.SysPost;

import com.hulk.dryad.persistence.injector.datascope.mapper.DataScopeMapper;

import org.apache.ibatis.annotations.Mapper;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hulk.dryad.common.constant.CommonConstants;

import java.util.List;

/**
 * 岗位信息
 *
 * @author hulk
 * @date 2021-04-01 10:06:32
 */
@DS("#" + CommonConstants.TENANT_ID)
@Mapper
public interface SysPostMapper extends DataScopeMapper<SysPost> {

	/**
	 * 通过用户ID，查询角色信息
	 * @param userId
	 * @return
	 */
	List<SysPost> listPostsByUserId(Long userId);

}
